/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.war.config;

import java.util.HashMap;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.ApplicationScoped;

/**
 *
 * @author Ambroise
 */
@ManagedBean(name="htmlConfig")
@ApplicationScoped
public class HtmlConfig {

	private HashMap<String, String> alert;

	public HashMap<String, String> getAlert() {
		return alert;
	}

	public Object getAlert(String key) {
		return ((alert.containsKey(key))? alert.get(key) : false) ;
	}
	
	public HtmlConfig() {
		alert = new HashMap<String, String>();
		alert.put("error", "alert alert-error");
		alert.put("block", "alert alert-block");
		alert.put("info", "alert alert-info");
		alert.put("success", "alert alert-success");
	}
}
